package com.dgut.common.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dgut.common.entity.Item;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dgut.common.result.TypeResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyq
 * @since 2022-03-13
 */
@Repository
public interface ItemMapper extends BaseMapper<Item> {

    Page<TypeResult> selectMyPage(@Param("page") IPage<TypeResult> page, @Param("categoryId") Integer categoryId, @Param("name") String name);

}
